<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>提升</title>
</head>
<body>
<script>
    // 函数表达式不会提升，具名函数表达式也不会提升
    foo();
    bar();
    var foo = function bar(){
        console.log('function')
    }
</script>
</body>
</html>
